<?php

class Skjb_Search_Xapian_Stem
{
    public $_cPtr = null;

    function __construct($language) {
        $this->_cPtr = new_Stem($language);
    }

    function apply($word) {
        return Stem_apply($this->_cPtr, $word);
    }

    function get_description() {
        return Stem_get_description($this->_cPtr);
    }

    static function get_available_languages() {
        return Stem_get_available_languages();
    }
}